package com.util;

public class CastUtil {
	public static Integer parseInt(String s, String msg) throws Exception {
		Integer v = 0;
		try {
			v = Integer.parseInt(s);
		}catch (Exception e) {
			throw new Exception(msg + ":" + s + ", 数字类型转换失败："+e.getMessage()) ;
		}
		return v;
	}
}
